6 const int MAXN
= 10000, MAXK
= 100;
15 scanf("%d %d", &n
, &k
);
17 for (int i
=0; i
<n
; ++i
){
18 for (int j
=0; j
<k
; ++j
){
24 if (a
[0] < 0) a
[0] *= -1;
26 for (int i
=0; i
<n
-1; ++i
){
27 for (int j
=0; j
<k
; ++j
){
40 printf((dp
[n
-1][0]?"D":"Not d"));